import QtQuick 1.1
import com.meego 1.0

import "const.js" as Const

// Trying out the new BusyIndicator custom item]
Rectangle {
    id : container
    width: 120; height: 120
    radius: 15
    opacity: 0.6
    color : "#000000"
    // Trying out the new BusyIndicator custom item
    BusyIndicator
    {
        id: busyIndicator
        width: 100
        height: 100
        anchors.centerIn: parent
        platformStyle: BusyIndicatorStyle { size: "large" }
        running:  true
    }

    /**
      * Loading
      */
    function loading(){
        console.debug("start loading ........") ;
        container.visible = true ;

    }

    /**
      * Finish load
      */
    function finish(){
        console.debug("end loading ........") ;
        container.visible = false ;
    }
}
